/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package financialcalendar;

import java.util.Date;

/**
 *
 * @author James
 */
public class User {
    private double currentBalance;
    public String firstName;
    public String lastName;
    public int birthDate;
    public int birthMonth;
    public int birthYear;
    public FinancialCalendar myCalendar;
    public String emailAddress;
    public double projectedMonthlyIncome;
    public double projectedDailySpending;
    
    public User(double b, String f, String l, int birthMonth, int birthDay, int birthYear, String email, double projMonthInc, double projDaySpend)
    {
        currentBalance = b;
        firstName = f;
        lastName = l;
        birthDate = birthDay;
        this.birthMonth = birthMonth;
        this.birthYear = birthYear;
        emailAddress = email;
        projectedMonthlyIncome = projMonthInc;
        projectedDailySpending = projDaySpend;
    }
    public void addCalendar(FinancialCalendar c)
    {
        myCalendar = c;
    }
    public void updateCalendar(double g, GoalType gT, Date gD)
    {
        myCalendar.goal = g;
        myCalendar.goalDate = gD;
        myCalendar.goalType = gT;
    }
    
}
